package com.kris.dev2;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import org.apache.velocity.runtime.directive.Foreach;

public abstract class People {
	
	public void personal(){
		System.out.println("私有个人 方法");
	}
	
	
	public static void main(String[] args) {
		Map<String,Object> map = new HashMap<String, Object>();
		
		map.put("1","jack");
		map.put("2","tom");
		map.put("3","jerry");

		Set set = map.entrySet();
		System.out.println(set);
			
		set = map.keySet();
		System.out.println(set);
		
		Collection<Object> c = map.values();
		System.out.println(c);
		

		for (Map.Entry<String, Object> entry : map.entrySet()) {
			System.out.println(entry.getKey());
		}
		
	}

}
